﻿using System;
using System.IO;
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling;

namespace Oplaco.Exceptions
{
    
    /// <summary>
    /// Summary description for AppTextExceptionFormatter.
    /// </summary>	
    public class ApplicationTextExceptionFormatter : TextExceptionFormatter
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="writer"></param>
        /// <param name="exception"></param>
        public ApplicationTextExceptionFormatter(TextWriter writer, Exception exception) : base(writer, exception)
        {
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="stackTrace"></param>
        protected override void WriteStackTrace(string stackTrace)
        {

        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="exceptionType"></param>
        protected override void WriteExceptionType(Type exceptionType)
        {
            base.Indent();
            base.Writer.WriteLine("Type : {0}", exceptionType.FullName);
        }

    }
    
}
